package STUDENT.TRANDAODAIVI.ARRAY;
import java.util.Scanner;
public class BT1 {
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	float[] Array=new float[100];
	int tongdiem=0;
	labelAll:for(int i=0;i<Array.length;i++){
		System.out.print("Nhap diem "+(i+1)+" :");
		Array[i]=sc.nextFloat();
		if(Array[i]<0){break labelAll;}
		tongdiem=tongdiem+1;
	}
	
	int sum1=0,sum2=0,sum3=0;
	
	for (int i=0;i<tongdiem;i++){
		if(Array[i]>5){
			sum3=sum3+1;
		} else if(Array[i]==5){
			sum2=sum2+1;
		} else{
			sum1=sum1+1;
		}
	}
	
	System.out.println("So diem duoi 5: "+sum1);
	System.out.println("So diem bang 5: "+sum2);
	System.out.println("So diem tren 5: "+sum3);
}
}
